<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
	<title>Smuoi Application Inline Frame</title>
	<meta http-equiv="Cache-Control" content="No-Cache">
	<meta http-equiv="Pragma" content="No-Cache" />
	<script type="text/javascript">// <![CDATA[
		
		var win,doc,body;
		
		function $U(name){
			return document.getElementsByTagName(name)[0];
		}
		
		document.include = function(src){
			var tag = document.createElement('script');
			tag.setAttribute('type', 'text/javascript');
			tag.setAttribute('src', src);
			$U('head').appendChild(tag);
		}
		
		function add_css(src){
			var tag = document.createElement('link');
			tag.setAttribute('type', 'text/css');
			tag.setAttribute('rel', 'stylesheet');
			tag.setAttribute('href', src);
			$U('head').appendChild(tag);
		}
		
		function grab_css(){
			css = doc.getElementsByTagName('link');
			for(var i=0; i<css.length; i++) if(css[i].rel == 'stylesheet') add_css(css[i].href);
		}
		
		window.onload = function(){
			frameElement.window = window;
			win = window.parent;
			doc = win.document;
			grab_css();
			window.body = $U('body');
			body.style.minWidth = '0px';
			body.style.minHeight = '0px';
			body.style.backgroundImage = 'none';
			body.style.backgroundColor = '#FFFFFF';
			if(typeof frameElement.onframeload == 'function') frameElement.onframeload(window);
			frameElement.loaded = true;
			frameElement.style.display = 'block';
		}
		
	// ]]></script>
</head>
<body></body>
</html>
